﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Core;
using MvcEngine.Core.Content;
using MvcEngine.HtmlText.Components.Extensions;
using System.Web.Mvc;
using MvcEngine.Mvc.Extensions;

namespace MvcEngine.HtmlText
{
    public class DeleteCommand: ControlCommand
    {
        public override string GetUrl(System.Web.Routing.RequestContext context)
        {
            UrlHelper urlHelper = new UrlHelper(context);
            return urlHelper.EditText(context.RouteData.GetPageContentId());
        }
    }
}
